package com.joint.base.service.impl;

import com.joint.base.bean.FlowEnum;
import com.joint.base.dao.BaseEntityDao;
import com.joint.base.dao.StepBriefDao;
import com.joint.base.dao.TaskEntityDao;
import com.joint.base.entity.StepBrief;
import com.joint.base.entity.TaskEntity;
import com.joint.base.entity.Users;
import com.joint.base.service.StepBriefService;
import com.joint.base.service.TaskEntityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * Service实现类 - 
 * ============================================================================
 * 版权所有 2013
 * ----------------------------------------------------------------------------
 * 
 * @author 
 * 
 * @version 0.1 2011-6-13
 */

@Service
public class TaskEntityfServiceImpl extends BaseEntityServiceImpl<TaskEntity, String> implements TaskEntityService {
    @Resource
    private TaskEntityDao taskEntityDao;

    @Override
    public BaseEntityDao<TaskEntity, String> getBaseEntityDao() {
        return taskEntityDao;
    }

    @Override
    public List<TaskEntity> getInfoByEntityName(String entityName) {
        return taskEntityDao.getInfoByEntityName(entityName);
    }

    @Override
    public TaskEntity getInfoByKeyId(String keyId) {
        return taskEntityDao.getInfoByKeyId(keyId);
    }

    @Override
    public List<TaskEntity> getInfoByReaders(String entityName, FlowEnum.ProcessState[] processState, String users_id) {
        return taskEntityDao.getInfoByReaders(entityName, processState, users_id);
    }

    @Override
    public List<TaskEntity> getInfoByDraft(FlowEnum.ProcessState processState, Users users) {
        return taskEntityDao.getInfoByDraft(processState, users);
    }

    @Override
    public List<TaskEntity> getInfoByEditors( FlowEnum.ProcessState[] processState, String users_id) {
        return taskEntityDao.getInfoByEditors( processState, users_id);
    }
}